package com.bcd.beans;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.bcd.model.ArticleType;
import com.bcd.model.AuctionType;

public class DVD extends Article{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String _duration;
	private String _director;
	private String _actor;
	private String _moviestyle;
	private String _year;
	
	public DVD(){
		super(ArticleType.DVD);
	}
	@Override
	public void setArticle(ResultSet rs) {
		try {
			_title = rs.getString("article_title");
			_start = rs.getDate("article_auction_start");
			_end = rs.getDate("article_auction_end");
			_price = rs.getFloat("article_auction_price");
			_auctionType = AuctionType.valueOf(rs.getString("article_auction"));
			
			_duration = rs.getString("article_duration");
			_director = rs.getString("article_director");
			_actor = rs.getString("article_actor");
			_moviestyle = rs.getString("article_moviestyle");
			_year = rs.getString("article_year");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}		
	}
	/**
	 * @return the _duration
	 */
	public String get_duration() {
		return _duration;
	}
	/**
	 * @param _duration the _duration to set
	 */
	public void set_duration(String _duration) {
		this._duration = _duration;
	}
	/**
	 * @return the _director
	 */
	public String get_director() {
		return _director;
	}
	/**
	 * @param _director the _director to set
	 */
	public void set_director(String _director) {
		this._director = _director;
	}
	/**
	 * @return the _actor
	 */
	public String get_actor() {
		return _actor;
	}
	/**
	 * @param _actor the _actor to set
	 */
	public void set_actor(String _actor) {
		this._actor = _actor;
	}
	/**
	 * @return the _moviestyle
	 */
	public String get_moviestyle() {
		return _moviestyle;
	}
	/**
	 * @param _moviestyle the _moviestyle to set
	 */
	public void set_moviestyle(String _moviestyle) {
		this._moviestyle = _moviestyle;
	}
	/**
	 * @return the _year
	 */
	public String get_year() {
		return _year;
	}
	/**
	 * @param _year the _year to set
	 */
	public void set_year(String _year) {
		this._year = _year;
	}
	
	
}